<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>12<?=$da['frs']['filename']?></title>
    <link rel="stylesheet" type="text/css" href="webmain/css/css.css"/>
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/js.js"></script>

</head>
<style type="text/css">
    .container {
        margin: 200px auto;
    }

</style>

<body style="padding:0px;margin:0px;">
<!--加载图片-->
<div class="container">
    <p align="center">
        努力加载中，请稍后...
    </p>
    <div align="center" style="margin-top: 50px;">
        <img src="images/kkloading.gif" alt="加载中..."/>
    </div>
</div>
<div>
    <input type="hidden" id="yulanla" value="<?=$da['frs']['filepath']?>">
    <input type="hidden" id="view_web" value="<?=$da['frs']['edit_web']?>">
    <input type="hidden" id="watermark" value="<?=$da['frs']['watermark']?>">
    <input type="hidden" id="isie" value="<?=$da['frs']['isie']?>">
</div>
</body>
<script>
    $(document).ready(function () {
        var path = $("#yulanla").val();

        var domain = document.domain;
        var url = 'http://' + domain + '/' + path;
        var viewpath = $("#view_web").val();
        var isie = $("#isie").val();
        if (isie == 1) {
            var vewurl = viewpath + '/onlinePreview?url=' + encodeURIComponent(url);
        } else {
            var watermark = $("#watermark").val();
            var vewurl = viewpath + '/onlinePreview?url=' + encodeURIComponent(url) + watermark;
        }
        window.open(vewurl, '_self');
    });
</script>
</html>